﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1.View
{
    public partial class stockTableForm : Form
    {
        public stockTableForm()
        {
            InitializeComponent();
        }

        private void orderItemBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.orderItemBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.database1DataSet1);

        }

        private void stockTableForm_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'database1DataSet1.orderItem' table. You can move, or remove it, as needed.
            this.orderItemTableAdapter.Fill(this.database1DataSet1.orderItem);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            sub_reports s = new sub_reports();
            s.ShowDialog();
        }
    }
}
